package xyz.yudan.app.dao.biz;

import java.util.HashMap;

/**
 * Created by gamy on 2018/4/6.
 */
public class ResponseWrapper {
    private int code = 0;
    private String message = "";
    private HashMap<String, Object> data = new HashMap<String, Object>();

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public HashMap<String, Object> getData() {
        return data;
    }

    public void setDataValueWithKey(String key, Object value) {
        if (key != null && value != null && key.length() != 0) {
            this.data.put(key, value);
        }
    }
}
